package cn.istartfinancial.config.flowable;

import org.flowable.image.impl.DefaultProcessDiagramCanvas;
import java.awt.*;

/**
 * @author: Nzp
 * @date: 2018/8/27
 * @description: 自定义的ProcessDiagramCanvas主要为了修改颜色
 */
public class MyDefaultProcessDiagramCanvas extends DefaultProcessDiagramCanvas
{
    static
    {
        HIGHLIGHT_COLOR = Color.GREEN;
        LABEL_COLOR = new Color(112, 146, 190);
        TASK_BORDER_COLOR = new Color(187, 187, 187);
        EVENT_BORDER_COLOR = new Color(88, 88, 88);
        SUBPROCESS_BORDER_COLOR = new Color(0, 0, 0);
        THICK_TASK_BORDER_STROKE = new BasicStroke(3.0F);
        GATEWAY_TYPE_STROKE = new BasicStroke(3.0F);
        END_EVENT_STROKE = new BasicStroke(3.0F);
        MULTI_INSTANCE_STROKE = new BasicStroke(1.3F);
        EVENT_SUBPROCESS_STROKE = new BasicStroke(1.0F, 0, 0, 1.0F, new float[]{1.0F}, 0.0F);
        NON_INTERRUPTING_EVENT_STROKE = new BasicStroke(1.0F, 0, 0, 1.0F, new float[]{4.0F, 3.0F}, 0.0F);
        HIGHLIGHT_FLOW_STROKE = new BasicStroke(1.3F);
        ANNOTATION_STROKE = new BasicStroke(2.0F);
        ASSOCIATION_STROKE = new BasicStroke(2.0F, 0, 0, 1.0F, new float[]{2.0F, 2.0F}, 0.0F);
        ICON_PADDING = 5;
    }

    public MyDefaultProcessDiagramCanvas(int width, int height, int minX, int minY,
                                         String imageType, String activityFontName,
                                         String labelFontName, String annotationFontName,
                                         ClassLoader customClassLoader)
    {
        super(width, height, minX, minY, imageType, activityFontName, labelFontName, annotationFontName,
                customClassLoader);
    }
}